package com.artist.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.lang.Long;
@Table
public class TbMessage implements Serializable {

  private static final Long serialVersionUID = -1675946381450158328L;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long mId;
  private String pTitle;
  private String mTitle;
  private String mName;
  private Long mStatus;
  private Timestamp mCreatAt;
  private Timestamp mUpdateAt;
  private Long uId;
  private String mMessage;
  private String mMsg;

  @Override
  public String toString() {
    return "TbMessage{" +
            "mId=" + mId +
            ", pTitle='" + pTitle + '\'' +
            ", mTitle='" + mTitle + '\'' +
            ", mName='" + mName + '\'' +
            ", mStatus=" + mStatus +
            ", mCreatAt=" + mCreatAt +
            ", mUpdateAt=" + mUpdateAt +
            ", uId=" + uId +
            ", mMessage='" + mMessage + '\'' +
            ", mMsg='" + mMsg + '\'' +
            '}';
  }

  public TbMessage() {
  }

  public TbMessage(Long mId, String pTitle, String mTitle, String mName, Long mStatus, Timestamp mCreatAt, Timestamp mUpdateAt, Long uId, String mMessage, String mMsg) {
    this.mId = mId;
    this.pTitle = pTitle;
    this.mTitle = mTitle;
    this.mName = mName;
    this.mStatus = mStatus;
    this.mCreatAt = mCreatAt;
    this.mUpdateAt = mUpdateAt;
    this.uId = uId;
    this.mMessage = mMessage;
    this.mMsg = mMsg;
  }

  public Long getMId() {
    return mId;
  }

  public void setMId(Long mId) {
    this.mId = mId;
  }


  public String getPTitle() {
    return pTitle;
  }

  public void setPTitle(String pTitle) {
    this.pTitle = pTitle;
  }


  public String getMTitle() {
    return mTitle;
  }

  public void setMTitle(String mTitle) {
    this.mTitle = mTitle;
  }


  public String getMName() {
    return mName;
  }

  public void setMName(String mName) {
    this.mName = mName;
  }


  public Long getMStatus() {
    return mStatus;
  }

  public void setMStatus(Long mStatus) {
    this.mStatus = mStatus;
  }


  public Timestamp getMCreatAt() {
    return mCreatAt;
  }

  public void setMCreatAt(Timestamp mCreatAt) {
    this.mCreatAt = mCreatAt;
  }


  public Timestamp getMUpdateAt() {
    return mUpdateAt;
  }

  public void setMUpdateAt(java.sql.Timestamp mUpdateAt) {
    this.mUpdateAt = mUpdateAt;
  }


  public Long getUId() {
    return uId;
  }

  public void setUId(Long uId) {
    this.uId = uId;
  }


  public String getMMessage() {
    return mMessage;
  }

  public void setMMessage(String mMessage) {
    this.mMessage = mMessage;
  }


  public String getMMsg() {
    return mMsg;
  }

  public void setMMsg(String mMsg) {
    this.mMsg = mMsg;
  }

}
